#include "state.h"
#include <cstdlib>

int main(int argc, char *argv[])
{
  if (argc < 2)
    return 1; // argv[1] must be the text map file name

  TestMap tm(argv[1]); // construct the map

  StateDiagram sd(tm);

  return sd.searchPath() ? EXIT_SUCCESS : EXIT_FAILURE;
}
